package com.tj.bo.trade.server.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.tj.bo.trade.server.dao.MockBinaryTradeDao;
import com.tj.bo.trade.server.entity.MockBinaryTradeEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: anonymous
 * Date: 2020-09-18
 * Time: 15:15:26.846
 */

@Repository
public class MockBinaryTradeDaoImpl extends AbstractBaseMapper<MockBinaryTradeEntity> implements MockBinaryTradeDao {

    @Override
    public MockBinaryTradeEntity selectMockBinaryTradeByTradeNo(String tradeNo) {
        Map<String, Object> params = new HashMap<>();
        params.put("tradeNo", tradeNo);
        return getSqlSession().selectOne("selectMockBinaryTradeByTradeNo", params);
    }
}
